//
//  SEGWindmillProperty.h
//  ExcellentHome
//
//  Created by mac on 2017/12/14.
//  Copyright © 2017年 陈区. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface SEGWindmillProperty : NSObject
+(instancetype)sharedWindmillVar;

@property (nonatomic, strong)UIImageView *refreshbgView;
@property (nonatomic, strong)UIImageView *pullRefreshViews;
@property (nonatomic, strong)UILabel *pullRefreshLabel;

@property (nonatomic, assign)BOOL canHeaderFresh;
@property (nonatomic, assign)BOOL canMoveSun;//实际是-是否执行刷新开始前的动画效果。
@property (nonatomic, assign)BOOL isFooter;//是不是底部上拉加载，为no的话是下拉刷新

@property (nonatomic, assign)BOOL showHeader;//显示头部，下拉刷新
@property (nonatomic, assign)BOOL showFooter;//显示底部，上拉加载
@property (nonatomic, assign) BOOL stopFooterRefreshData;//停止刷新，防止多次上拉加载
@property (nonatomic, assign)BOOL isUserTouched;//是否是用户手动在操作。
@property (nonatomic, assign)BOOL takeWindmillToFront;//将大风车带到视图最前面
@property (nonatomic, assign)BOOL takeFooterRefreshToFront;//将上拉效果带到视图最前面
@property (nonatomic, strong)NSMutableDictionary * showHeaderAndShowFooterDict;//界面的showHeader和showFooter属性与类名绑定
-(void)animationBeforeRefesh:(CGFloat)contentY;//执行刷新开始前的动画效果,用于下拉刷新
-(void)startLoadData;//开始刷新时，需要做的动画处理，旋转
@property (nonatomic, assign)BOOL isLoading;//是否正在访问网络（开始动画与结束动画之间为Yes）
//以下属性为了配合UIScrollView+MJRefresh而增
/**
 *  开始进入刷新状态的监听器
 */
@property (strong, nonatomic) id beginRefreshingTaget;
/**
 *  开始进入刷新状态的监听方法
 */
@property (assign, nonatomic) SEL beginRefreshingAction;
/**
 *  开始进入刷新状态就会调用
 */
@property (nonatomic, strong) void (^beginRefreshingCallback)();

/**
 *  开始进入加载状态的监听器
 */
@property (strong, nonatomic) id beginDownloadingTaget;
/**
 *  开始进入加载状态的监听方法
 */
@property (assign, nonatomic) SEL beginDownloadingAction;
/**
 *  开始进入加载状态就会调用
 */
@property (nonatomic, strong) void (^beginDownloadingCallback)();

@property (nonatomic, assign) BOOL isMJRefresh;

@end
